/**
 * Generate time : 2011-06-29 10:07:02
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ca.domain;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import com.baosight.iplat4j.util.StringUtils;

/**
 * VZMCA24
 * 
 */
public class VZMCA24 extends DaoEPBase {

	private String fdKeyId = " ";
	private String fdProblemTypeId = " ";
	private String fdProblemTypeName = " ";
	private String fdProblemLevelId = " ";
	private String fdVirtualDate = " ";
	private String fdProblemDate = " ";
	private String fdProblemTime = " ";
	private String fdBusinessDepartmentId = " ";
	private String fdDepartmentName = " ";
	private String fdProblemStatus = " ";
	private String fdAuditDepartmentId = " ";
	private String fdGroupworkreportId = " ";
	private String fdFromDate = " ";
	private String fdToDate = " ";

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemTypeId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemTypeName");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemLevelId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdVirtualDate");
		eiColumn.setFieldLength(14);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemDate");
		eiColumn.setFieldLength(14);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemTime");
		eiColumn.setFieldLength(14);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdBusinessDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentName");
		eiColumn.setFieldLength(256);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemStatus");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAuditDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdGroupworkreportId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFromDate");
		eiColumn.setFieldLength(0);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdToDate");
		eiColumn.setFieldLength(0);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public VZMCA24() {
		initMetaData();
	}

	/**
	 * get the fdKeyId
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdProblemTypeId
	 * 
	 * @return the fdProblemTypeId
	 */
	public String getFdProblemTypeId() {
		return this.fdProblemTypeId;
	}

	/**
	 * set the fdProblemTypeId
	 */
	public void setFdProblemTypeId(String fdProblemTypeId) {
		this.fdProblemTypeId = fdProblemTypeId;
	}

	/**
	 * get the fdProblemTypeName
	 * 
	 * @return the fdProblemTypeName
	 */
	public String getFdProblemTypeName() {
		return this.fdProblemTypeName;
	}

	/**
	 * set the fdProblemTypeName
	 */
	public void setFdProblemTypeName(String fdProblemTypeName) {
		this.fdProblemTypeName = fdProblemTypeName;
	}

	/**
	 * get the fdProblemLevelId
	 * 
	 * @return the fdProblemLevelId
	 */
	public String getFdProblemLevelId() {
		return this.fdProblemLevelId;
	}

	/**
	 * set the fdProblemLevelId
	 */
	public void setFdProblemLevelId(String fdProblemLevelId) {
		this.fdProblemLevelId = fdProblemLevelId;
	}

	/**
	 * get the fdVirtualDate
	 * 
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}

	/**
	 * set the fdVirtualDate
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}

	/**
	 * get the fdProblemDate
	 * 
	 * @return the fdProblemDate
	 */
	public String getFdProblemDate() {
		return this.fdProblemDate;
	}

	/**
	 * set the fdProblemDate
	 */
	public void setFdProblemDate(String fdProblemDate) {
		this.fdProblemDate = fdProblemDate;
	}

	/**
	 * get the fdProblemTime
	 * 
	 * @return the fdProblemTime
	 */
	public String getFdProblemTime() {
		return this.fdProblemTime;
	}

	/**
	 * set the fdProblemTime
	 */
	public void setFdProblemTime(String fdProblemTime) {
		this.fdProblemTime = fdProblemTime;
	}

	/**
	 * get the fdBusinessDepartmentId
	 * 
	 * @return the fdBusinessDepartmentId
	 */
	public String getFdBusinessDepartmentId() {
		return this.fdBusinessDepartmentId;
	}

	/**
	 * set the fdBusinessDepartmentId
	 */
	public void setFdBusinessDepartmentId(String fdBusinessDepartmentId) {
		this.fdBusinessDepartmentId = fdBusinessDepartmentId;
	}

	/**
	 * get the fdDepartmentName
	 * 
	 * @return the fdDepartmentName
	 */
	public String getFdDepartmentName() {
		return this.fdDepartmentName;
	}

	/**
	 * set the fdDepartmentName
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}

	/**
	 * get the fdProblemStatus
	 * 
	 * @return the fdProblemStatus
	 */
	public String getFdProblemStatus() {
		return this.fdProblemStatus;
	}

	/**
	 * set the fdProblemStatus
	 */
	public void setFdProblemStatus(String fdProblemStatus) {
		this.fdProblemStatus = fdProblemStatus;
	}

	/**
	 * get the fdAuditDepartmentId
	 * 
	 * @return the fdAuditDepartmentId
	 */
	public String getFdAuditDepartmentId() {
		return this.fdAuditDepartmentId;
	}

	/**
	 * set the fdAuditDepartmentId
	 */
	public void setFdAuditDepartmentId(String fdAuditDepartmentId) {
		this.fdAuditDepartmentId = fdAuditDepartmentId;
	}

	/**
	 * get the fdGroupworkreportId
	 * 
	 * @return the fdGroupworkreportId
	 */
	public String getFdGroupworkreportId() {
		return this.fdGroupworkreportId;
	}

	/**
	 * set the fdGroupworkreportId
	 */
	public void setFdGroupworkreportId(String fdGroupworkreportId) {
		this.fdGroupworkreportId = fdGroupworkreportId;
	}

	/**
	 * get the fdFromDate
	 * 
	 * @return the fdFromDate
	 */
	public String getFdFromDate() {
		return this.fdFromDate;
	}

	/**
	 * set the fdFromDate
	 */
	public void setFdFromDate(String fdFromDate) {
		this.fdFromDate = fdFromDate;
	}

	/**
	 * get the fdToDate
	 * 
	 * @return the fdToDate
	 */
	public String getFdToDate() {
		return this.fdToDate;
	}

	/**
	 * set the fdToDate
	 */
	public void setFdToDate(String fdToDate) {
		this.fdToDate = fdToDate;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdProblemTypeId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemTypeId")), fdProblemTypeId));
		setFdProblemTypeName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemTypeName")), fdProblemTypeName));
		setFdProblemLevelId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemLevelId")), fdProblemLevelId));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdProblemDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemDate")), fdProblemDate));
		setFdProblemTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemTime")), fdProblemTime));
		setFdBusinessDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBusinessDepartmentId")), fdBusinessDepartmentId));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdProblemStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemStatus")), fdProblemStatus));
		setFdAuditDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAuditDepartmentId")), fdAuditDepartmentId));
		setFdGroupworkreportId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGroupworkreportId")), fdGroupworkreportId));
		setFdFromDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFromDate")), fdFromDate));
		setFdToDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdToDate")), fdToDate));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdProblemTypeId", StringUtils.toString(fdProblemTypeId, eiMetadata.getMeta("fdProblemTypeId")));
		map.put("fdProblemTypeName", StringUtils.toString(fdProblemTypeName, eiMetadata.getMeta("fdProblemTypeName")));
		map.put("fdProblemLevelId", StringUtils.toString(fdProblemLevelId, eiMetadata.getMeta("fdProblemLevelId")));
		map.put("fdVirtualDate", StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));
		map.put("fdProblemDate", StringUtils.toString(fdProblemDate, eiMetadata.getMeta("fdProblemDate")));
		map.put("fdProblemTime", StringUtils.toString(fdProblemTime, eiMetadata.getMeta("fdProblemTime")));
		map.put("fdBusinessDepartmentId", StringUtils.toString(fdBusinessDepartmentId, eiMetadata.getMeta("fdBusinessDepartmentId")));
		map.put("fdDepartmentName", StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));
		map.put("fdProblemStatus", StringUtils.toString(fdProblemStatus, eiMetadata.getMeta("fdProblemStatus")));
		map.put("fdAuditDepartmentId", StringUtils.toString(fdAuditDepartmentId, eiMetadata.getMeta("fdAuditDepartmentId")));
		map.put("fdGroupworkreportId", StringUtils.toString(fdGroupworkreportId, eiMetadata.getMeta("fdGroupworkreportId")));
		map.put("fdFromDate", StringUtils.toString(fdFromDate, eiMetadata.getMeta("fdFromDate")));
		map.put("fdToDate", StringUtils.toString(fdToDate, eiMetadata.getMeta("fdToDate")));

		return map;

	}
}